package com.imooc.impl;

import com.imooc.IUserCredential;

/**
 * @author steve
 * @date 2020/6/8 14:45
 */
public class IUserCredentialImpl implements IUserCredential {
    @Override
    public String verifyUser(String username) {
        if ("admin".equals(username)) {
            return "系统管理员";
        } else if ("manager".equals(username)) {
            return "用户管理员";
        }
        return "普通用户";
    }
}
